<!DOCTYPE html>
<html>
  <head>
    <title>字典配置项-列表</title>
 		<#include "fsoft-common.ftl" />
  </head>
  <body>
    <div class="layui-fluid">
			<div class="layui-card">
				<div class="layui-card-body">
					<form class="layui-form" action="" lay-filter="fsoftForm" id="fsoftForm" autocomplete="off">
						<input class="layui-input" type="hidden" id="dictId" name="dictId" value="${model.id}">
						<div class="layui-inline layui-show-xs-block">
							<input class="layui-input" type="text" name="code"  placeholder="编码精确搜索" autocomplete="off">
						</div>
						<div class="layui-inline layui-show-xs-block">
							<input class="layui-input" type="text" name="name"  placeholder="名称模糊搜索" autocomplete="off">
						</div>
						<div class="layui-inline layui-show-xs-block">
							<button class="layui-btn layui-btn-normal" lay-submit lay-filter="sreach">
								<i class="layui-icon layui-icon-search"></i>搜索
							</button>
						</div>
					</form>
				</div>
				<div class="layui-card-body">
					<table id="table" class="layui-table" lay-filter="fsoftItemTable"></table>
				</div>
			</div>
    </div>  
  </body>
	<#--  工具条（table头部）  -->
	<script type="text/html" id="fsoft-table-toolbar">
		<div class="layui-btn-container">
			<div class="layui-btn-group">
				<@perms value="sys:dict:save">
					<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="add">
						<i class="fa fa-plus-circle" aria-hidden="true" ></i> 新增
					</button>
				</@perms>
				<@perms value="sys:dict:remove">
					<button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="removeBatch">
						<i class="fa fa-trash" aria-hidden="true"></i>删除
					</button>
				</@perms>
			</div>
			<div class="layui-btn-group">
				<@perms value="sys:dict:enable">
					<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="enable">
						<i class="fa fa-play-circle" aria-hidden="true" ></i> 启用
					</button>
				</@perms>
				<@perms value="sys:dict:disable">
					<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="disable">
						<i class="fa fa-minus-circle" aria-hidden="true" ></i> 禁用
					</button>
				</@perms>
			</div>
		</div>
	</script>
	<#-- 工具栏（table 操作列） -->
	<script type="text/html" id="itemFormBar">
		<@perms value="sys:dict:edit">
		  	<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">
		  		<i class="fa fa-edit" aria-hidden="true" ></i> 编辑
	  		</a>
		</@perms>
		<@perms value="sys:dict:remove">
		  	<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">
		  		<i class="fa fa-trash" aria-hidden="true" ></i> 删除
	  		</a>
		</@perms>
	</script>
	<#-- 这里的 checked 的状态 -->
	<script type="text/html" id="switchStatus">
	  <input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="正常|禁用" lay-filter="status" {{ d.status == 1 ? 'checked' : '' }}>
	</script>
	<#include "fsoft-common-foot.ftl" />
	<script type="text/javascript" src="${request.contextPath}/static/fsoft-web/dict/sysitems-list.js?v=202002"></script>
</html>